package edu.cmu.cs.stage3.alice.core.question.list;

import edu.cmu.cs.stage3.alice.core.List;
import edu.cmu.cs.stage3.alice.core.property.ListProperty;

public abstract class ListNumberQuestion extends edu.cmu.cs.stage3.alice.core.question.NumberQuestion {
	public final ListProperty list = new ListProperty( this, "list", null );
	//protected abstract double getValue( List list );
	protected abstract int getValue( List list );
	//Rem @Override
	public Object getValue() {
		List listValue = list.getListValue();
		if( listValue!=null ) {
			return new Integer( getValue( listValue ) );
		} else {
			return null;
		}
	}
}